export interface loginParams {
  username: string
  password: string
  // 验证码
  code: string
  // 登陆时签发的uuid，用于对验证码进行校验
  uuid: string
}

export interface loginResponse {
  code: number
  msg: string
  token?: string

}

export interface logoutResponse {
  code: number
  msg: string
}

export interface userInfoResponse {
  code: number
  msg: string
  user?: userInfo
  roles?: string[]
  isDefaultModifyPwd?: boolean
  isPasswordExpired?: boolean
  permissions?: string[]
}

interface userInfo {
  userId: number
  avatar: string
  userName: string
  nickName: string
  sex: string
  desc: string
}

export interface codeImageResponse {
  msg: string
  img: string
  code: number
  captchaEnabled: boolean
  uuid: string
}
